package cn.clickmed.getActivityB;

import org.apache.cordova.CordovaActivity;
import org.apache.cordova.LOG;

import cn.clickmed.DaTong.R;
import cn.clickmed.exitApp.SysApplication;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.inputmethod.InputMethodManager;

public class getActivityB extends CordovaActivity{
    @Override
	public void onCreate(Bundle savedInstanceState)
    {
    	
        super.onCreate(savedInstanceState);
        super.init();
        getIntent().putExtra("splashscreen", R.drawable.datong_db_bg);
       
        InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
        im.hideSoftInputFromWindow(getCurrentFocus().getApplicationWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
  
        Intent tempI = getIntent();
        Bundle extras = tempI.getExtras();
    	String url =extras.getString("url");
    	LOG.e("url",url);
     
        super.loadUrl(url);
       
  /*
        Runnable runnable = new Runnable() {
        	 public void run() {
        		 try {
					Thread.sleep(50);
					removeSplashScreen();
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
        		 Log.e("splashscreen","hide");
        		
        	 }
        };
        this.getActivity().runOnUiThread(runnable);*/
      
        SysApplication.getInstance().addActivity(this); 
       
    }


}
